package me.jessyan.mvparms.demo.mvp.ui.activity.user;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.jess.arms.base.BaseActivity;
import com.jess.arms.di.component.AppComponent;
import com.jess.arms.utils.ArmsUtils;

import me.jessyan.mvparms.demo.R;
import me.jessyan.mvparms.demo.mvp.ui.widget.CustomToolbar;

public class NickNameActivity extends BaseActivity {

   private CustomToolbar toolbar;
    @Override
    public void setupActivityComponent(@NonNull AppComponent appComponent) {

    }

    @Override
    public int initView(@Nullable Bundle savedInstanceState) {
        return R.layout.activity_nick_name;
    }

    @Override
    public void initData(@Nullable Bundle savedInstanceState) {
        toolbar = findViewById(R.id.toolbar);

        toolbar.setRightTv("完成");
        toolbar.setListener(new CustomToolbar.ToolbarListener() {
            @Override
            public void onLeftBack() {
                finish();
            }

            @Override
            public void onRightBack() {
                ArmsUtils.makeText(getApplication(),"完成");
            }
        });

    }
}
